﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using System.Web;

namespace Model
{

    [MetadataType(typeof(EfficiencyLog_Metadata))]
    [DisplayName("周期")]
    public partial class EfficiencyLog
    {
        public EfficiencyLog()
        {
            this.Id = Guid.NewGuid();
            this.AddDate = DateTime.Now;
            this.StarDate = DateTime.Now;
            this.EndDate = DateTime.Now;
            this.UserId = new Guid(HttpContext.Current.User.Identity.Name);
        }

        public class EfficiencyLog_Metadata
        {
            [ScaffoldColumn(false)]
            public System.Guid Id { get; set; }

            [ScaffoldColumn(false)]
            public object UserId { get; set; }

            [DisplayName("周期")]
            [DropDownList("EfficiencyLogCycle", "Id", "Title")]
            public object CycleId { get; set; }

            [DisplayName("开始时间")]
            public object StarDate { get; set; }

            [DisplayName("结束时间")]
            public object EndDate { get; set; }

            [DisplayName("是否完成")]
            public object Completed { get; set; }

            [DisplayName("日志主题")]
            public object Title { get; set; }

            [DisplayName("详细内容")]
            [DataType(DataType.MultilineText)]
            public object Content { get; set; }

            [DisplayName("建立日期")]
            public object AddDate { get; set; }


        }
    }
}
